Skip to main content
POST
Product Background Removal

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required
  • Image format: JPEG JPG BMP PNG (8-bit, 16-bit, and 64-bit PNG are not supported).
  • Image size: No more than 3 MB.
  • Image resolution: Less than 2000x2000px.
return_form
enum<string>

Specifies the form of the returned image.

  • If not set, the four-channel PNG map is returned.
  • mask: Returns a single channel mask.
  • whiteBK: Return to white background image.
  • crop: Returns the four-channel PNG image after cropping (cropping out the blank areas around the edges).
Available options:
mask,
whiteBK,
crop

Response

200 - application/json

Success

request_id
string
required

Request ID for debugging.

log_id
string
required

Log ID for debugging.

error_detail
object
required
data
object

The content of the result data returned.